import java.io.*;
import java.net.*;

public class ClienteApp {
	static final String HOST = "localhost";
	static final int PUERTO = 5000;

	public ClienteApp() {
		try {
			Socket skCliente = new Socket(HOST, PUERTO);
			InputStream aux = skCliente.getInputStream();
			DataInputStream flujo = new DataInputStream(aux);
			System.out.println(flujo.readUTF());
			skCliente.close();
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
	}

	public static void main(String[] arg) {
		new ClienteApp();
	}
}
